package com.plugin.core.model.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 房间信息实体类
 * 
 * @author mark
 * @date 2025-07-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("elder_room")
@Schema(name = "ElderRoom", description = "房间信息")
public class ElderRoom {

    @Schema(description = "ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @Schema(description = "老人id")
    @TableField("elder_id")
    private Long elderId;

    @Schema(description = "房间编号")
    @TableField("room_number")
    private String roomNumber;

    @Schema(description = "楼栋")
    @TableField("building")
    private String building;

    @Schema(description = "楼层")
    @TableField("floor")
    private String floor;

    @Schema(description = "房间类型")
    @TableField("room_type")
    private String roomType;

    @Schema(description = "床位数量")
    @TableField("bed_count")
    private Integer bedCount;

    @Schema(description = "床位号")
    @TableField("bed_number")
    private Integer bedNumber;

    @Schema(description = "设施设备")
    @TableField("facilities")
    private String facilities;

    @Schema(description = "状态：0-维修中，1-可用，2-已满")
    @TableField("status")
    private Integer status;

    @Schema(description = "房间费用")
    @TableField("room_price")
    private BigDecimal roomPrice;

    @Schema(description = "描述")
    @TableField("description")
    private String description;

    @Schema(description = "创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @Schema(description = "创建人")
    @TableField("create_by")
    private String createBy;

    @Schema(description = "是否删除：0-未删除，1-已删除")
    @TableField("del")
    private Integer del;
}
